home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
WINPROGS
/
GC101C.ZIP
/
GOCIS.TPL
< prev
next >
Wrap
Text File
|
1993-11-19
|
20KB
|
615 lines
;***************************************************************
;* GoCIS Commands Commands *
;***************************************************************
;
; REMOVE or SET ACTION flags for forum as tasks are completed
;
; REMOVEACTION &&FORUMNAME Join.Forum
; SETACTION &&FORUMNAME Set.Defaults
;
; Valid action flags
; Join.Forum
; Set.Defaults
; Update.Sections
; Read.Announcements
; Scan.New.Messages
; Read.Messages
; Send.Replies
; Read.New.Messages
; Read.Waiting.Messages
; Scan.Libraries
; Download.Files
; Upload.FIles
;
;
;
; GO forum_name
; RESET
; KILLFILE filename
; KILLDIR directory
; MAKEDIR directory
; LIB library_number
;
; SCANMES
; SCANTHR
; SCANLIB
; QSCNLIB
;
; JOIN
;
; DOWNLOAD filename pathname
;
; READSEC
; READMES
; READTHR
; READANN
; READMAIL
;
; RECORD
;
; DO scriptfile
;
; LOGOFF
; OFF
; QUIT
;
; S
; SE
; SEND text
;
; U
; W
; WA
; WAIT text
;
; P
; PA
; PAUSE number_of_seconds
;
; C
; CA
; CAPTURE filename
;
; PR
; PRINT ON, or OFF
;
; LOG text
;
; EC
; ECHO text
; ON, or OFF
;
; EN
; END
;
; N
; NA
; NAME
;
; US
; USER
; USERID
; RET
; RETURN
;
; DEBUG ON, or OFF
;***************************************************************
;* GoCIS Variables *
;***************************************************************
; GoCIS Variables are denoted by a single & characters &
; these variables are replaced with string values at the
; time GoCIS executes the script.
;
; "&USERID" CompuServe UserID
; "&NAME" UserName
; "&PASSWORD" User Password
; "&GATEWAY" Current Gateway
; "&FORUM" Current Forum
;
;***************************************************************
;* GoCIS Conditional Commands *
;***************************************************************
;
;
; '%', '?' or '@' are prefix condition characters that can
; prefix any command in order to make the
; command conditional on the success of any
; prior command.
;
; Each occurrence of these prefix conditions denotes a
; level of nesting that should be considered prior to
; executing the command. Up to 10 levels of nesting
; (or 10 prefix conditions) can be checked.
;
; Basically processing proceeds as follows:
:
; For each Prefix condition:
;
; For I = 0 to the Number-of-Prefix-Conditions
; If The_Condition_At(I) = FALSE Then Skip This Command
; Next
;
; All Conditions are true So Perform the command and save the return code...
;
; ReturnCode = Command()
;
; If the command worked then ReturnCode = TRUE Else ReturnCode = FALSE
;
; Now set the next higher condition to the value of the ReturnCode so that
; Other commands can be based on the success of the command just executed
;
; Set The_Condition_At(Number-Of-Prefix-Conditions + 1) = ReturnCode
;
;
; The Prefix Conditions Denote the following conditions
;
;
; % Defines a TRUE condition at this error level
; @ Defines a FALSE condition at this error level
; ? Defines a Don't Care Condition at this error level
;
;
; The following is an example of some of the concepts presented:
;
;
; GO FORUM
; ; This command will always be executed since there are no
; ; prefix conditions. If GoCIS successfully enters the FORUM
; ; then the condition at level 1 will be set to TRUE otherwise it
; ; will be set to FALSE
;
; %ECHO We entered the FORUM successfully
; ; The ECHO command will execute only if the condition at level 1 is TRUE
; ; The ECHO Command does not return a condition and therefore does not
; ; affect the condition at level 2
;
; %LIB 1
; ; We will only go to library 1 if the condition at level 1 is TRUE
; ; this of course depends on that success of the GO FORUM Command
; ; If the command is executed it will set the condition at Level 2
;
; %%SCANLIB KEY:PROGRAMS LIB:ALL
; ; Scanning for programs will depend of the success of getting to the Library Prompt
; ; Therefore this command depends of the success of both the GO FORUM and LIB 1
; ; commands. Here we test 2 levels of prefix conditions denoted by the fact that
; ; there are 2 '%' characters prefixing the SCANLIB Command
; ; If the command is executed it will set the condition at Level 3
;
; %@ECHO Can't Enter library 1 of the FORUM
; ; This command will only be executed if we successfully entered the forum
; ; and were unable to enter the library. Since the first prefix_condition is
; ; an % the condition at level 1 must be true, this was set by the value returned
; ; by the GO FORUM command. If GO FORUM was not successful the command would be skipped
; ; The second prefix_condition @ indicates that the condition at level 2 must be FALSE
; ; this condition was last established by the %LIB 1 command.
; ; The ECHO Command does not return a condition and therefore does not
; ; affect the condition at level 3
;
; @ECHO Can't Enter the FORUM
; ; This command will only be executed if the GO FORUM command was unsuccessful
; ; the @ indicates that the condition at level 1 must be FALSE. This of course
; ; was last set by the GO FORUM command.
;
;
;***************************************************************
;* Template Variables *
;***************************************************************
;
; Template Variables are denoted by the characters &&
; these variables are replaced with string values at the
; time GoCIS generates the script. Don't confuse template
; variables with script variables. Script variables are
; evaluated when the script is executed by GoCIS
;
;
;
; "&&USERID" CompuServe UserID
; "&&USERNAME" UserName
; "&&PHONENUMBER" PhoneNumber
; "&&LOGONSCRIPT" LogonScript
;
; "&&GATEWAY" Forum Gateway
; "&&FORUMNAME" Name
; "&&FORUMTITLE", Title
; "&&CONTROLPATH" Path For Control Files
; "&&DOWNLOADPATH" Downloads
; "&&MESSAGEPATH" Messages
; "&&SCRIPTPATH" Scripts
;
; "&&LIBRARY" Library Number
; "&&DOWNLOADFILE" Download FileName
; "&&DOWNLOADSIZE" Filesize
; "&&DOWNLOADDATE" Filedate
; "&&DOWNLOADCOUNT" #DownLoads
; "&&DOWNLOADUPLD" Uploaded by this CIS User
; "&&DOWNLOADTITLE" Title Description of File
;
; "&&SCANFILE" LibraryScan FileName
; "&&SCANAGE" Days old or age
; "&&SCANLIBS" Libraries to scan through
; "&&SCANKEYWORDS" Keywords to look for
; "&&SCANTYPE" Short or long descriptions
; "&&SCANDESC" Description of this scan
;
; "&&READMSGSECTION" ReadMessage Section Number
; "&&READMSGNUMBNER" Thread or Message Number
;
; "&&VERSION" GoCIS Version Number
; "&&DATE" Date script was created
; "&&TIME" Time script was created
;
;
;
;
[PROLOG]
;
; This script file was created on &&DATE at &&TIME by &&USERNAME.
;
;***********************************************************************
; GoCIS &&VERSION
; Copyright(C) 1992
; Larry Lee (76670,1471)
; 16038 Augusta Drive
; Chino Hills, Ca 91709
;***********************************************************************
;
;
WAI